#include<iostream>
using namespace std;

class Person
{
public:
    Person(int age)
    {
        m_age = age;
    }

    Person person_add(Person p)
    {
        this->m_age += p.m_age;
        return *this;
    }

    int m_age;
};

void test()
{
    Person p1(10);
    Person p2(10);

    p1.person_add(p2).person_add(p2).person_add(p2).person_add(p2);
    cout << "p1的年龄:" << p1.m_age << endl;
}

int main()
{
    test();

    return 0;
}